package com.atcx.service;

import com.atcx.pojo.User;
import com.atcx.util.PageResult;
import com.atcx.util.QueryPageBean;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author pangShu
 * @since 2022-03-23
 */
public interface UserService extends IService<User> {
    public int addUser(User user);

    public User getUserByNP(User user);

    public int  updateUser(User user);

    public int  deleteUser(int id);

    public PageResult findByPage(QueryPageBean queryPageBean);

    public boolean getNameExist(String name);

    public Boolean getUserNameExist(String username);

    public User getUserById(Integer userId);
    public int addUserByManager(User user);
}
